package com.treasure.mall.biz.entity.wechat;

import com.treasure.mall.biz.entity.BasePO;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.wechat
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/24 13:01
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.entity.wechat Inc. All rights reserved.
 */
@Entity
@Data
@NoArgsConstructor
@Table(name = "zb_wechat_config")
public class WechatConfigPO extends BasePO {


    @Id
    @Column(name = "app_id", length = 30)
    private String appId;

    /**
     * 小程序secret
     */
    @Column(name = "app_secret", length = 50)
    private String appSecret;

    @Column(name = "app_name", length = 50)
    private String appName;


    public WechatConfigPO(String id, String key, String name) {

        this.appId = id;
        this.appSecret = key;
        this.appName = name;
    }

}
